package ru.nsu.ccfit.kalah.activity;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.ListView;
import ru.nsu.ccfit.kalah.R;
import ru.nsu.ccfit.kalah.database.DatabaseManager;
import ru.nsu.ccfit.kalah.game.Score;


public class ScoresActivity extends Activity {
    ListView listView;

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_scores);


        listView = (ListView) findViewById(R.id.listview);
        listView.setAdapter(new ScoresAdapter(this, DatabaseManager.selectAll(this)));
    }

    public void onClickApply(View v) {
        finish();

    }
}